import React, { useContext } from "react";
import context from "@/context";
const { CountContext } = context;

export default function TestUseContext() {
    // let count = useContext(CountContext);
    // return <div>{count}</div>;
    return (
        <>
            <CountContext.Consumer>{count => <div>{count}</div>}</CountContext.Consumer>
        </>
    );
}
